#pragma once
#include "Box2D/Box2D.h"
class CPhysicsBody
{
public:
	CPhysicsBody(void);
	~CPhysicsBody(void);
public:
	void setPhysicsBody(b2Body *pBody);
	b2Body *getPhysicsBody();
	void setTrasform(const b2Vec2& position, float32 angle=0);
	void posAdd(const b2Vec2& vecAdd);
	void collisionRemove(bool bCollision);
	bool isCollision();
	void setPhysicsSpeed(const b2Vec2 &bvSpeed );
	void setTransparent(bool bTransparent);
	bool getTransparent();
	void setSpeed(const b2Vec2& vecSpeed);
	b2Vec2 getSpeed();
	bool canCollisionRemove();
	void  setCollisionRemove(bool bRemove);
protected:
	virtual void update_pos(float fX,float fY);
	
	b2Body *pBody_;
	bool bCollision_;
	bool bTransparent_;
	b2Vec2 vecSpeed_;
	bool  bRemove_;
};
